package com.thf.dao;

import com.thf.model.PageModel;
import com.thf.model.product.ProductModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductDao {

    //    public String[] title = {"用友通","Microsoft Windows","SteelEye LifeKeeper for Linux","OA办公自动化","麦凯思酒店管理","恩特网络监控管理","Adobe CS4","Microsoft Office"} ;
//    public String price = "0.00";

    public List<ProductModel> findAll(@Param("pageModel") PageModel pageModel, @Param("productModel") ProductModel productModel);

    Integer getCount(@Param("productModel") ProductModel productModel);

    Integer add(@Param("productModel") ProductModel productModel);

    ProductModel getProductById(@Param("pid") Integer pid);

    Integer update(@Param("productModel") ProductModel productModel);

    Integer delete(@Param("pid") Integer pid);
}
